package org.dromara.exam.domain.bo;

import org.dromara.exam.domain.ExamHistoryPaper;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 历年题库预览业务对象 exam_history_paper
 *
 * @author Lion Li
 * @date 2025-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ExamHistoryPaper.class, reverseConvertGenerate = false)
public class ExamHistoryPaperBo extends BaseEntity {

    /**
     * 试卷ID
     */
    @NotNull(message = "试卷ID不能为空", groups = { EditGroup.class })
    private Long paperId;

    /**
     * 年份月份（如202406）
     */
    @NotBlank(message = "年份月份（如202406）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String paperYearMonth;

    /**
     * 级别（1-四级 2-六级）
     */
    @NotNull(message = "级别（1-四级 2-六级）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long paperLevel;

    /**
     * 试卷名称
     */
    @NotBlank(message = "试卷名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * PDF下载地址
     */
    private String pdfDownloadUrl;

    /**
     * PDF预览地址
     */
    private String pdfPreviewUrl;

    /**
     * 状态（0正常 1停用）
     */
    private String status;


}
